<template>
	<view class="smart-container">
		<view class="smart-container">1.容器</view>
		<view class="smart-panel-h" @click="goDetailPage('view')"><test>view视图</test></view>
		<view class="smart-panel-h" @click="goDetailPage('scroll-view')"><test>scroll-view滚动视图</test></view>
		<view class="smart-panel-h" @click="goDetailPage('swipter')"><test>swiper可滑动视图</test></view>
		
		<view class="smart-container">2.基础内容</view>
		<view class="smart-panel-h" @click="goDetailPage('text')"><test>text文本编辑</test></view>
		<view class="smart-panel-h" @click="goDetailPage('icon')"><test>icon图标</test></view>
		<view class="smart-panel-h" @click="goDetailPage('progress')"><test>progress进度条</test></view>
		
		<view class="smart-container">3.表单组件</view>
		<view class="smart-panel-h" @click="goDetailPage('button')"><test>button按钮</test></view>
		<view class="smart-panel-h" @click="goDetailPage('checkbox')"><test>checkbox多选框</test></view>
		<view class="smart-panel-h" @click="goDetailPage('label')"><test>label标签组件</test></view>
		<view class="smart-panel-h" @click="goDetailPage('input')"><test>input输入框</test></view>
		<view class="smart-panel-h" @click="goDetailPage('form')"><test>form表单</test></view>
		
		<view class="smart-container">4.导航组件</view>
		<view class="smart-panel-h" @click="goDetailPage('navigator')"><test>navigator导航</test></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(pageName){
				console.log('跳转页面:', pageName);
				
				const url = `/pages/tabBar/tabcompage/${pageName}/${pageName}`;
				console.log('跳转路径:', url);
				
				uni.navigateTo({
					url: url,
					fail: (err) => {
						console.error('跳转失败:', err);
					}
				});
			}
		}
	}
</script>

<style>

</style>
